import { request } from '@umijs/max';
import type { DataResponse } from '../typing';
import type { uploadFileData } from './typing';
// 上传文件
export function uploadFile(file: FormData) {
  return request<Promise<DataResponse<uploadFileData>>>('/api/file-manage', {
    method: 'POST',
    data: file,
  });
}
